package com.rui.service;

import com.rui.domain.Student;
import com.rui.domain.User;

import java.util.List;

public interface StudentService {

    //根据学号查询学生信息
    Student findStudentByStuNo(String stuNo);

    //保存学生信息
    boolean saveStudentAndUser(Student student, User user);

    //根据教师id查询学生的信息
    List<Student> findStudentsByJobNo(String jobNo, int year);

    //修改学生信息
    boolean updateStudent(Student student);

    //根据学号删除学生信息和用户信息
    boolean deleteStudent(String stuNo);

    //批量删除学生信息和用户信息
    boolean deleteBatchStudents(String[] stuNo);
}
